<?php
$user_array = array(
				array(
					"account"	=> array(
						array("基础信息", "account_base", "/user/info/index.html"),
						array("认证信息", "account_auth", "/user/realname/index.html"),
						array("安全信息", "account_safe", "/user/user_safe.html"),
						array("VIP信息", "account_vip", "/user/vip/index.html")
					),
					"我的账户"
				),
				array(
					"fund"	=> array(
						array("交易记录", "fund_deal", "/account/details.html"),
						array("资金总览", "fund_overview", "/account/info.html"),
						array("账户充值", "fund_recharge", "/account/recharge.html"),
						array("账户提现", "fund_withdraw", "/account/cash.html"),
						array("银行卡", "fund_bank", "/account/bank.html")
					),
					"资金管理"
				),
				array(
					"invest"	=> array(
						array("我的投资", "invest_mine", "/userborrow/success.html"),
						array("债权转让", "invest_transfer", "/userborrow/transferlog.html"),
						array("自动投标", "invest_auto", "/borrowauto/alist.html")
					),
					"理财管理"
				),
				array(
					"borrow"	=> array(
						array("我的借款", "borrow_mine", "/userborrow/publish.html"),
						array("资料证明", "borrow_material", "/credentials/all.html")
					),
					"借款管理"
				),
				array(
					"interact"	=> array(
						array("站内消息", "interact_siteMsg", "/message/received.html"),
						array("留言消息", "interact_message", "/leaveword/release.html")
					),
					"互动管理"
				),
				array(
					"recommend"	=> array(
						array("推荐好友", "recommend_friend", "/user/invite.html")
					),
					"好友推荐"
				),
				array(
					"shop"	=> array(
						array("积分明细", "shop_creditDetail", "/shop/credit_detail.html"),
						array("积分抽奖", "shop_box", "/shop/credit_box.html"),
						array("积分兑换", "shop_creditExchange", "/shop/credit_exchange.html")
					),
					"积分商城"
				),
			);
?>
	<div class="left account-menu">
		<h1>会员中心</h1>
        <?php foreach($user_array as $menu_list => $menu_item){?>
        <dl>
			<dt<?php if( $tab_first == key($menu_item) ){?> class="cut"<?php }?>>
            	<a href="javascript:void(0);"><?php echo $menu_item[0]?></a>
            </dt>
            <?php if(count($menu_item)){?>
            <?php foreach($menu_item as $menu_key => $menu_val){?>
            <dd>
                <?php foreach($menu_val as $menu_att){?>
				<h3<?php if($tab_second == $menu_att[1]){?> class="current"<?php }?>>
				<a href="<?php echo $menu_att[2];?>"><?php echo $menu_att[0];?></a>
				</h3>
                <?php }?>
            </dd>
            <?php }?>
            <?php }?>
		</dl>
        <?php }?>
	</div>
    <?php // echo $tab_second; ?>
	<script type="text/javascript">
        $(document).ready(function(){
            $(".account-menu dl dd").hide();
            var h2 = $(".account-menu dl dt");
            var currentA = new Array();
            currentA  = $('.account-menu dl dd h3');
            for(var i = 0; i<currentA.size();i++){
                if($($(currentA[i])).hasClass('current') == true) {
                    $(currentA[i]).parent().show();
                }
            }
            h2.click(function(){
                $(".account-menu dl dd").slideUp();
                var current = $(this).next('dd');
                current.slideDown();
                h2.removeClass("cut");
                $(this).addClass("cut");
            });
    
        });
    </script>
